package com.yanfan.energy.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author caijinkang
 * @date 2023年02月02日 10:05
 */
public class SectionBody {
    private Integer sectionId;
    private String sectionNumber;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date sectionBeginDate;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date sectionEndDate;
    private String sectionWorkshop;
    private Integer sectionShopId;

    public SectionBody() {
    }

    public SectionBody(Integer sectionId, String sectionNumber, Date sectionBeginDate, Date sectionEndDate, String sectionWorkshop, Integer sectionShopId) {
        this.sectionId = sectionId;
        this.sectionNumber = sectionNumber;
        this.sectionBeginDate = sectionBeginDate;
        this.sectionEndDate = sectionEndDate;
        this.sectionWorkshop = sectionWorkshop;
        this.sectionShopId = sectionShopId;
    }

    @Override
    public String toString() {
        return "SectionBody{" + "sectionId=" + sectionId + ", sectionNumber='" + sectionNumber + '\'' + ", sectionBeginDate=" + sectionBeginDate + ", sectionEndDate=" + sectionEndDate + ", sectionWorkshop='" + sectionWorkshop + '\'' + ", sectionShopId=" + sectionShopId + '}';
    }

    public Integer getSectionShopId() {
        return sectionShopId;
    }

    public void setSectionShopId(Integer sectionShopId) {
        this.sectionShopId = sectionShopId;
    }

    public Integer getSectionId() {
        return sectionId;
    }

    public void setSectionId(Integer sectionId) {
        this.sectionId = sectionId;
    }

    public String getSectionNumber() {
        return sectionNumber;
    }

    public void setSectionNumber(String sectionNumber) {
        this.sectionNumber = sectionNumber;
    }

    public Date getSectionBeginDate() {
        return sectionBeginDate;
    }

    public void setSectionBeginDate(Date sectionBeginDate) {
        this.sectionBeginDate = sectionBeginDate;
    }

    public Date getSectionEndDate() {
        return sectionEndDate;
    }

    public void setSectionEndDate(Date sectionEndDate) {
        this.sectionEndDate = sectionEndDate;
    }

    public String getSectionWorkshop() {
        return sectionWorkshop;
    }

    public void setSectionWorkshop(String sectionWorkshop) {
        this.sectionWorkshop = sectionWorkshop;
    }
}
